/*
 * 作者:熊猫
 * 日期:2017 - 3 - 20 4 - 42 - 14
 *
 */

package net.lainiao.morethread.Chapter8.demo6;

import java.util.concurrent.locks.ReentrantLock;

/**
 * Created by Administrator on 2017/3/20.
 */
public class Main {
    public static void main(String[] args) {
        ReentrantLock lock=new ReentrantLock();
        for (int i = 0; i < 10; i++) {
            Task task=new Task(lock);
            Thread thread=new Thread(task);
            thread.run();
        }
    }
}
